package com.matt.domain;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;


@Data
@Entity
@Table(name = "tb_complaint_record")
@EqualsAndHashCode(callSuper = true)
public class ComplaintRecord extends Domain {

    @Column(columnDefinition = " varchar(50) COMMENT '" +
            "投诉对象:园长-ROLE_GARDEN_LEADER 儿保-ROLE_DOCTOR 老师-ROLE_TEACHER 销售-ROLE_BUSINESS 表扬-PRAISE 匿名吐槽-ANONYMOUS' ")
    private String complaintObjet;

    @Column(columnDefinition = " varchar(1024) COMMENT '投诉标题' ")
    private String complaintTitle;

    @Column(columnDefinition = " varchar(1024) COMMENT '投诉内容' ")
    private String complaintContent;

    @Column(columnDefinition = " varchar(32) COMMENT '对应园区id' ")
    private String areaId;

    @Transient
    private String areaName;

    @Column(columnDefinition = " varchar(2048) COMMENT '媒体文件地址' ")
    private String resourceUrl;

    @Column(columnDefinition = " varchar(64) COMMENT '' ")
    private String childrenId;

    @Column(columnDefinition = " varchar(64) COMMENT '' ")
    private String childrenName;

    @Column(columnDefinition = " varchar(32) COMMENT '' ")
    private String usersId;

    @Column(columnDefinition = " varchar(50) COMMENT '' ")
    private String usersName;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '是否回复 0：否，1是' ")
    private Boolean isReply = false;

    @Column(columnDefinition = "varchar(64) COMMENT ''")
    private String staffId = "";

    @Column(columnDefinition = "varchar(64) COMMENT ''")
    private String staffName = "";

    @Column(columnDefinition = " datetime DEFAULT NULL COMMENT '回复时间' ")
    private Date replyDate;

    @Column(columnDefinition = " varchar(2048) COMMENT '回复内容' ")
    private String replyContent;


}
